package com.liang.blog.client.menu;

import com.liang.blog.common.result.Result;
import com.liang.blog.vo.menu.MenuPermissionVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @Author：YanWenLiang
 * @Date:2023-08-19-22:11
 */
@FeignClient(name = "blog-service-system", contextId="MenuFeignClient")
@Component
public interface MenuFeignClient {

    @GetMapping("/menu/getMenuByRoleIdAndMenuId/{roleId}")
    public List<MenuPermissionVo> getMenuByRoleIdAndMenuId(@PathVariable(value = "roleId") int roleId);
}
